package businesslogic.financialbl.stub;

import java.util.ArrayList;

import po.ClientPO;
import po.UserPO;
import businesslogicservice.financialblservice.*;
import utility.TimePeriod;
import vo.*;

public class MoneyManagerStub implements MoneyBLService{
	public boolean pay(PayVO vo){
		System.out.println("Paying money succeed!");
		return true;
	}
	
	public boolean receive(ReceiveVO vo){
		System.out.println("Receiving money succeed");
		return true;
	}

	public PayVO findPay(String serialNumber) {
		// TODO Auto-generated method stub
		ArrayList<PayVOLineItem> list = new ArrayList<PayVOLineItem>();
		list.add(new PayVOLineItem(new AccountVO("accountName",21314,"accountId"),1321,"comment"));
		return new PayVO(232,list);
	}

	public ReceiveVO findReceive(String serialNumber) {
		// TODO Auto-generated method stub
		ArrayList<ReceiveVOLineItem> list = new ArrayList<ReceiveVOLineItem>();
		list.add(new ReceiveVOLineItem(new AccountVO("accountName",21314,"accountId"),1321,"comment"));
		return new ReceiveVO(232,list);
	}

	public ArrayList<PayVO> mutipleConditionFindPay(TimePeriod period,
			String clientId, String userId) {
		// TODO Auto-generated method stub
		ArrayList<PayVOLineItem> list = new ArrayList<PayVOLineItem>();
		list.add(new PayVOLineItem(new AccountVO("accountName",21314,"accountId"),1321,"comment"));
		ArrayList<PayVO> mlist = new ArrayList<PayVO>();
		mlist.add(new PayVO(12312,list));
		return mlist;
	}

	public ArrayList<ReceiveVO> mutipleConditionFindReceive(TimePeriod period,
			String clientId, String userId) {
		// TODO Auto-generated method stub
		ArrayList<ReceiveVOLineItem> list = new ArrayList<ReceiveVOLineItem>();
		list.add(new ReceiveVOLineItem(new AccountVO("accountName",21314,"accountId"),1321,"comment"));
		ArrayList<ReceiveVO> mlist = new ArrayList<ReceiveVO>();
		mlist.add(new ReceiveVO(12312,list));
		return mlist;
	}
}
